package com.recycle.system.domain.vo;

import com.recycle.system.domain.dto.PayChartData;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PayChart {
    private List<String> listDate;
    private List<PayChartData> listData;


    public void initListData(){
        ArrayList<PayChartData> list = new ArrayList<>();
        PayChartData payChartData1 = new PayChartData();
        payChartData1.setName("预期收益");
        payChartData1.setType("bar");
        payChartData1.setData(new ArrayList<>());
        list.add(payChartData1);

        PayChartData payChartData2 = new PayChartData();
        payChartData2.setName("实际收益");
        payChartData2.setType("bar");
        payChartData2.setData(new ArrayList<>());
        list.add(payChartData2);

        PayChartData payChartData3 = new PayChartData();
        payChartData3.setName("实际/预期百分比");
        payChartData3.setType("line");
        payChartData3.setData(new ArrayList<>());
        list.add(payChartData3);

        this.listData = list;


    }
}
